﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public enum TypeAudit
    {
        AddNew = 1,
        Edit = 2,
        Delete = 4,
        View = 8
    }
    public static class Helper
    {
        public static bool HasPermission(TypeAudit audit, int permission)
        {
            if (((int)audit & permission) == (int)audit)
                return true;
            return false;
        }
    }
}
